﻿using System;

/*
  Write a program that prints all possible cards from a standard deck 
  of 52 cards (without jokers). The cards should be printed with their 
  English names. Use nested for loops and switch-case.
 */

class PrintAllCardNames
{
    public enum CardColor { Clubs, Diamonds, Hearts, Spades };

    static void Main(string[] args)
    {
        foreach (CardColor color in Enum.GetValues(typeof(CardColor)))
            {
                Console.WriteLine(color + ":");

                for (int i = 1; i < 14; i++)
                {
                    string nameOfCurrentCard = "";

                    switch (i)
                    {
                        case 1:
                        {
                            nameOfCurrentCard += "Ace";
                            break;
                        }
                        case 2:
                        case 3:
                        case 4:
                        case 5:
                        case 6:
                        case 7:
                        case 8:
                        case 9:
                        case 10:
                        {
                            nameOfCurrentCard += i;
                            break;
                        }
                        case 11:
                        {
                            nameOfCurrentCard += "Jack";
                            break;
                        }
                        case 12:
                        {
                            nameOfCurrentCard += "Queen";
                            break;
                        }
                        case 13:
                        {
                            nameOfCurrentCard += "King";
                            break;
                        }
                    }

                    nameOfCurrentCard += " of " + color;
                    Console.WriteLine(nameOfCurrentCard);
                }
                Console.WriteLine("\r\n");
            }

    }
}

